package com.wangshupo.app.geekpark.service;

import com.wangshupo.app.geekpark.model.Author;

public interface AuthorService {

    /**
     * 新增作者
     *
     * @param author
     * @return
     */
    public Author addAuthor(Author author);

    /**
     * 查询第一条记录
     *
     * @param authorId
     * @return
     */
    public Author getAuthorById(String authorId);

    /**
     * 修改
     *
     * @param author
     * @return
     */
    public boolean modify(Author author);

    /**
     * 删除
     *
     * @param authorId
     * @return
     */
    public boolean delete(String authorId);
}
